package com.caseProcess.service.impl;

import com.caseProcess.entity.RoleSystemModel;
import com.caseProcess.mapper.RoleSystemModelDao;
import com.caseProcess.service.CaseService;
import com.caseProcess.service.RoleSystemModelService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class RoleSystemModelServiceImpl implements RoleSystemModelService {
    @Resource
    private RoleSystemModelDao roleSystemModelDao;


    @Override
    public int insert(RoleSystemModel roleSystemModel) {
        return roleSystemModelDao.insert(roleSystemModel);
    }

    @Override
    public int update(RoleSystemModel roleSystemModel) {
        return roleSystemModelDao.update(roleSystemModel);
    }

    @Override
    public int delete(long roleSystemModelId) {
        return roleSystemModelDao.delete(roleSystemModelId);
    }

    @Override
    public List<RoleSystemModel> select() {
        return roleSystemModelDao.select();
    }


}
